package io;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class BOSFlashDemo  {
    public static void main(String[] args) throws IOException {
       FileOutputStream fos = new FileOutputStream("bos.txt");
       BufferedOutputStream bos = new BufferedOutputStream(fos);
       String d = "俺是个好事管理科案件来看dsiahf";
       byte[] data =d.getBytes(StandardCharsets.UTF_8);
       bos.write(data);
       bos.flush();
       bos.close();
    }
}
